package sample;

import javafx.fxml.FXML;
import javafx.scene.control.TextField;
import javafx.scene.web.HTMLEditor;

public class Controller {
    @FXML
    private TextField account;

    @FXML
    private TextField pwd;

    @FXML
    private TextField receiverAccount;

    @FXML
    private TextField receiverNickname;

    @FXML
    private TextField senderNickname;

    @FXML
    private TextField title;

    @FXML
    private HTMLEditor content;

    public void sendEmail(){

        EmailUtil.sendEmail(account.getText(),pwd.getText(),senderNickname.getText(),
                receiverAccount.getText(), receiverNickname.getText(), title.getText(), content.getHtmlText());
    }

}
